﻿@model IEnumerable<ConsoleApplication2.Models.Vend>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.VENDSRH)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.COMPANY)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ADDR1)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ADDR2)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CITY)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.STATE)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ZIP)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.FEDID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CONTACT)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PHONE)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ISSUE1099)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ONETIME)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.FAX)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Acct1.DESC)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.currency1.DESCRIP)
        </th>
        <th>

        </th>
        <th>
            @Html.DisplayNameFor(model => model.OUTPATIENT)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DESC)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.TYPE)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PYMT_TERMS)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Specialty1.NAME)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.LICENSE_NO)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.STAFFTYPE)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.File_Primary_Key)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.VendDate)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ISMASTER)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.sunfrom1)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.sunto1)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.sunfrom2)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.sunto2)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.sunfrom3)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.sunto3)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.monfrom1)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.monto1)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.monfrom2)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.monto2)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.monfrom3)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.monto3)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.tuefrom1)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.tueto1)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.tuefrom2)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.tueto2)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.tuefrom3)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.tueto3)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.wedfrom1)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.wedto1)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.wedfrom2)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.wedto2)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.wedfrom3)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.wedto3)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.thufrom1)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.thuto1)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.thufrom2)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.thuto2)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.thufrom3)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.thuto3)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.frifrom1)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.frito1)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.frifrom2)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.frito2)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.frifrom3)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.frito3)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.satfrom1)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.satto1)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.satfrom2)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.satto2)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.satfrom3)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.satto3)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.notes)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CreationDate)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ServicePerc)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Lastupdate)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.code)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ANumber)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.enablevat)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CSTCTRID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Acct3.DESC)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.secondspeciality)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.IID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.MasterID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.FeesPlan)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.TPI)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.UID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ExternalParty)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.RefFeesplan)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.MonthlyTarget)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.VND_Physio)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Vend_AcctAssigned)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Vend_ItemPrefix)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Vend_Reference)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Vend_RecordType)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Vend_RecordID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Vnd_Department)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.VENDSRH)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.COMPANY)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ADDR1)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ADDR2)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CITY)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.STATE)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ZIP)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.FEDID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CONTACT)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PHONE)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ISSUE1099)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ONETIME)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.FAX)
        </td>
        <td>
       </td>
        <td>
            @Html.DisplayFor(modelItem => item.currency1.DESCRIP)
        </td>
        <td>
    
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.OUTPATIENT)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DESC)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TYPE)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PYMT_TERMS)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Specialty1.NAME)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.LICENSE_NO)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.STAFFTYPE)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.File_Primary_Key)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.VendDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ISMASTER)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.sunfrom1)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.sunto1)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.sunfrom2)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.sunto2)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.sunfrom3)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.sunto3)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.monfrom1)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.monto1)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.monfrom2)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.monto2)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.monfrom3)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.monto3)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.tuefrom1)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.tueto1)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.tuefrom2)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.tueto2)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.tuefrom3)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.tueto3)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.wedfrom1)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.wedto1)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.wedfrom2)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.wedto2)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.wedfrom3)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.wedto3)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.thufrom1)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.thuto1)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.thufrom2)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.thuto2)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.thufrom3)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.thuto3)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.frifrom1)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.frito1)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.frifrom2)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.frito2)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.frifrom3)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.frito3)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.satfrom1)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.satto1)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.satfrom2)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.satto2)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.satfrom3)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.satto3)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.notes)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CreationDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ServicePerc)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Lastupdate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.code)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ANumber)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.enablevat)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CSTCTRID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Acct3.DESC)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.secondspeciality)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MasterID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.FeesPlan)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TPI)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ExternalParty)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.RefFeesplan)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MonthlyTarget)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.VND_Physio)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Vend_AcctAssigned)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Vend_ItemPrefix)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Vend_Reference)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Vend_RecordType)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Vend_RecordID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Vnd_Department)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.ID }) |
            @Html.ActionLink("Details", "Details", new { id=item.ID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.ID })
        </td>
    </tr>
}

</table>
